import { useABI_getsize_Contract } from '../contacthelp/useContract.js'

export async function uploadFiles ({
  library, account, contractAddress, cid,
}) {
  const contract = useABI_getsize_Contract(library, account, contractAddress, true)
  console.log(contract)

  const info = await contract.getCidSize(name, cid, size, strSalt, signature, { value: '0', gasLimit: 300000 })

  return info
}
